<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>MiddlewareClass | daruk</title>
	<meta name="description" content="Documentation for daruk">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">daruk</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
							<input type="checkbox" id="tsd-filter-only-exported" />
							<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../index.html">Globals</a>
				</li>
				<li>
					<a href="middlewareclass.html">MiddlewareClass</a>
				</li>
			</ul>
			<h1>Interface MiddlewareClass</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">MiddlewareClass</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="middlewareclass.html#initmiddleware" class="tsd-kind-icon">init<wbr>Middleware</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
					<a name="initmiddleware" class="tsd-anchor"></a>
					<h3>init<wbr>Middleware</h3>
					<div class="tsd-signature tsd-kind-icon">init<wbr>Middleware<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>daruk<span class="tsd-signature-symbol">: </span><a href="../classes/daruk.html" class="tsd-signature-type">Daruk</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">Koa.Middleware</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Function</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in src/typings/daruk.ts:42</li>
						</ul>
					</aside>
					<div class="tsd-type-declaration">
						<h4>Type declaration</h4>
						<ul class="tsd-parameters">
							<li class="tsd-parameter-signature">
								<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-property">
									<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>daruk<span class="tsd-signature-symbol">: </span><a href="../classes/daruk.html" class="tsd-signature-type">Daruk</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Koa.Middleware</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Function</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>daruk: <a href="../classes/daruk.html" class="tsd-signature-type">Daruk</a></h5>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Koa.Middleware</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Function</span></h4>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="../index.html"><em>Globals</em></a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
					<li class=" tsd-kind-class">
						<a href="../classes/daruk.html" class="tsd-kind-icon">Daruk</a>
					</li>
					<li class=" tsd-kind-interface">
						<a href="darukcontext.html" class="tsd-kind-icon">Daruk<wbr>Context</a>
					</li>
					<li class=" tsd-kind-interface">
						<a href="middlewareandoptions.html" class="tsd-kind-icon">Middleware<wbr>And<wbr>Options</a>
					</li>
				</ul>
				<ul class="current">
					<li class="current tsd-kind-interface">
						<a href="middlewareclass.html" class="tsd-kind-icon">Middleware<wbr>Class</a>
						<ul>
							<li class=" tsd-kind-property tsd-parent-kind-interface">
								<a href="middlewareclass.html#initmiddleware" class="tsd-kind-icon">init<wbr>Middleware</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
					<li class=" tsd-kind-interface">
						<a href="middlewareconfig.html" class="tsd-kind-icon">Middleware<wbr>Config</a>
					</li>
					<li class=" tsd-kind-interface">
						<a href="middlewareconfigoptions.html" class="tsd-kind-icon">Middleware<wbr>Config<wbr>Options</a>
					</li>
					<li class=" tsd-kind-interface">
						<a href="pluginclass.html" class="tsd-kind-icon">Plugin<wbr>Class</a>
					</li>
					<li class=" tsd-kind-interface">
						<a href="timerclass.html" class="tsd-kind-icon">Timer<wbr>Class</a>
					</li>
					<li class=" tsd-kind-type-alias tsd-has-type-parameter">
						<a href="../index.html#constructor" class="tsd-kind-icon">Constructor</a>
					</li>
					<li class=" tsd-kind-type-alias">
						<a href="../index.html#next" class="tsd-kind-icon">Next</a>
					</li>
					<li class=" tsd-kind-variable">
						<a href="../index.html#darukcontainer" class="tsd-kind-icon">daruk<wbr>Container</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#darukserver" class="tsd-kind-icon">Daruk<wbr>Server</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#all" class="tsd-kind-icon">all</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#cache" class="tsd-kind-icon">cache</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#controller" class="tsd-kind-icon">controller</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#definecontrollermeta" class="tsd-kind-icon">define<wbr>Controller<wbr>Meta</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#definefunmeta" class="tsd-kind-icon">define<wbr>Fun<wbr>Meta</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#definemiddleware" class="tsd-kind-icon">define<wbr>Middleware</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#del" class="tsd-kind-icon">del</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#disabled" class="tsd-kind-icon">disabled</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#get" class="tsd-kind-icon">get</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#getmiddlewaresconfig" class="tsd-kind-icon">get<wbr>Middlewares<wbr>Config</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#head" class="tsd-kind-icon">head</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#header" class="tsd-kind-icon">header</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#middleware" class="tsd-kind-icon">middleware</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#middlewares" class="tsd-kind-icon">middlewares</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#options" class="tsd-kind-icon">options</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#patch" class="tsd-kind-icon">patch</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#plugin" class="tsd-kind-icon">plugin</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#post" class="tsd-kind-icon">post</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#prefix" class="tsd-kind-icon">prefix</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#priority" class="tsd-kind-icon">priority</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#put" class="tsd-kind-icon">put</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#redirect" class="tsd-kind-icon">redirect</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#required" class="tsd-kind-icon">required</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#service" class="tsd-kind-icon">service</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#timer" class="tsd-kind-icon">timer</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#type" class="tsd-kind-icon">type</a>
					</li>
					<li class=" tsd-kind-function">
						<a href="../index.html#typeparse" class="tsd-kind-icon">type<wbr>Parse</a>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>